/<template>
  <div>
      <van-swipe class="my-swipe" indicator-color="white">
        <van-swipe-item
            v-for="item, index in bannerList"
            :key="index"
        >
            <Img :src="item.img"/>
        </van-swipe-item>
    </van-swipe>
  </div>
</template>

<script>
import Img from './Img.vue'
export default {
    props: {
        bannerList: {
            type: Array,
            default: () => []
        }
    },
    components: {
        Img,
    }
}
</script>

<style>
.my-swipe .van-swipe-item {
    color: #fff;
    font-size: 20px;
    text-align: center;
    height: 160px;
    background-color: #39a9ed;
}
</style>